import time

from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
a = time.perf_counter()
driver.implicitly_wait(10)
try:
    driver.find_element('id','kw')
    b = time.perf_counter()
except:
    b = time.perf_counter()
finally:
    print(b-a)
